home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr47
/
sptdemo.zip
/
UTIL.PRG
< prev
Wrap
Text File
|
1995-02-28
|
2KB
|
59 lines
// ----------------------------------------------------------------------------
// (c) 1,994 Juan Miguel Sosso Prieto - Todos los derechos reservados
// Autor...: Juan Miguel Sosso
// Proyecto: Contabilidad Personal
// Módulo..: Utilidades
// Fecha...: Mon 16-05-94
// Hora....: 12:52:51
#include "sptools.ch"
// ----------------------------------------------------------------------------
//function cClrMnu()
//return "W+/BG, W+/N, GR+/BG, GR+/N, W/BG, W/N, N/BG"
// ----------------------------------------------------------------------------
//function cClrBrw()
//return "BG+/B,N/BG,W+/B,N*/W"
// ---------------------------------------------------------------------------
//function cClrWnd()
//return "W+/W,N*/W,N/W,BG+/B,W+/G,N/BG"
// ----------------------------------------------------------------------------
proc Reorganizar()
local nIng := 0
local nGas := 0
if nMsgBox( "Esta operación pueder ser larga,;pero es conveniente realizarla;al menos una vez al mes.", ;
{ " &Empezar ", " &Cancelar " } ) == 1
REINDEX DATABASES PACK
Grupo->( DbEval( { || Grupo->nINGRESO := 0, Grupo->nGASTO := 0 } ) )
Apunte->( DbGoTop() )
while ! Apunte->( EoF() )
nIng += Apunte->nINGRESO
nGas += Apunte->nGASTO
if Grupo->( DbSeek( Apunte->nGRUPO, .f. ) )
Grupo->nINGRESO += Apunte->nINGRESO
Grupo->nGASTO += Apunte->nGASTO
endif
Apunte->( DbSkip() )
enddo
Config->nINGRESO = nIng
Config->nGASTO = nGas
endif
return
// ----------------------------------------------------------------------------